package itcz.example.pattern.structure_type.proxy.cglib_proxy;

/**
 * @author itcz
 * @date 2023/07/04
 * @desc cglib代理(动态代理)
 */
public class Client {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory();
        TrainStation station = proxyFactory.getProxyObject();
        int count = station.sell();
        System.out.println("买票后剩余：" + count);
        System.out.println(station);
    }
}
